#include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;

void test(){
    vector<int>number(10,15);
    for(auto & num : number){
        cout << num << endl;
    }
    
    vector<int>number2({1,2,3,4,5,6,7,8});
    for(auto & num2 : number2){
        cout << num2 << endl;
    }

    vector<int>number3(number2.begin(),number2.end()-3);
    for(auto & num3 : number3){
        cout << num3 << endl;
    }
}
int main()
{
    test();
    return 0;
}
